package com.mrtaohuan.data;

import com.googlecode.objectify.ObjectifyService;

public class OfyService {
	static {
		ObjectifyService.setFactory(new OfyFactory());
	}

	/**
	 * @return our extension to Objectify
	 */
	public static Ofy ofy() {
		return (Ofy) ObjectifyService.ofy();
	}

	/**
	 * @return our extension to ObjectifyFactory
	 */
	public static OfyFactory factory() {
		return (OfyFactory) ObjectifyService.factory();
	}
}
